#!/usr/bin/env python2.5
# -*- coding: utf-8 -*-
from cesta import cesta
from modul_bmi import bmi
from modul_ecka import ecka
from  modul_kalorie import kalorie 
import gtk
import hildon
import sys

def main():
    
    program = hildon.Program.get_instance()
    gtk.set_application_name("Ecka")


    start = hildon.StackableWindow()
    start.connect("destroy", gtk.main_quit) 
    program.add_window(start)
    
    startv = gtk.VBox();
    start.add(startv);
    
    hb1 = gtk.VBox()
    startv.pack_start(hb1, expand=False);
    
    kalorieb = hildon.Button(gtk.HILDON_SIZE_FINGER_HEIGHT,hildon.BUTTON_ARRANGEMENT_VERTICAL,"Kalorie");
    kalorieb.connect("clicked", kalorie);
    hb1.pack_start(kalorieb, expand=True);
    
    eckab = hildon.Button(gtk.HILDON_SIZE_FINGER_HEIGHT,hildon.BUTTON_ARRANGEMENT_VERTICAL,"Emulgatory");
    eckab.connect("clicked", ecka);
    hb1.pack_start(eckab, expand=True);
    
    bmib = hildon.Button(gtk.HILDON_SIZE_FINGER_HEIGHT,hildon.BUTTON_ARRANGEMENT_VERTICAL,"BMI index");
    bmib.connect("clicked", bmi);
    hb1.pack_start(bmib, expand=True);
    
    
    start.show_all();
    gtk.main();
      
        

if __name__ == "__main__":  
    main();
    